<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">

		*{
			padding: 0px;
			margin: 0px;
		}
		.box1{
			width: 200px;
			height: 200px;
			background: red url() 0 0 no-repeat;
			color: #fff;
			margin: 20px;
			padding: 10px;
			border-top: 10px solid green;
		}
		.box2{
			width: 300px;
			height: 200px;
			background: red url() 0 0 no-repeat;
			color: #fff;
			padding: 10px 20px;
		}

	</style>
</head>
<body>
	<div class="box1">
		1
	</div>
	<div class="box2">
		2
	</div>
</body>
</html>